package com.syni.mdd.sjb.common.component.utils.feign.service.mdd.sjb.common.datatreasure;

import com.syni.mdd.sjb.common.component.utils.common.utils.RpcResponseVo;
import com.syni.mdd.sjb.common.component.utils.feign.constants.Constants;
import com.syni.mdd.sjb.common.component.utils.feign.dto.mdd.sjb.common.dxshapp.CommonPushToDsxhAppDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @className DxshApiNewsRestService
 * @description TOO
 * @Author cfx
 * @DATE 2020/5/15 15:35
 * @VERSION 1.0
 **/
@FeignClient(value = Constants.MDD_DXSH_APP,path = Constants.MDD_DXSH_APP_CONTEXT_PATH)
@RequestMapping("/apiAppNews")
public interface DxshApiNewsRestService {

    @PostMapping("/commonPushToDxshApp")
    RpcResponseVo commonPushToDxshApp(@RequestBody CommonPushToDsxhAppDto commonPushToDsxhAppDto);

    @PostMapping("/commonPushToDxshApp/v2")
    RpcResponseVo commonPushToDxshApp_v2(@RequestBody @Validated CommonPushToDsxhAppDto commonPushToDsxhAppDto);
}
